import request from '@/utils/request/index.js'

// 游客登录
export function getRobotInfo(paramStr) {
	return request.request({
		baseUrl: 'https://api.302ai.cn',
		url: '/v1/chat/completions',
		method: 'post',
		header: {
			"Content-Type": "application/json",
			"Accept": "application/json",
			"Authorization": "Bearer sk-AHs65qm4Ld3zFamPKZhLX9c9Cvo4UatUOZFfQDpK2VYEfwk5"
		},
		data: {
			"model": "gpt-3.5-turbo",
			"messages": [{
				"role": "user",
				"content": paramStr
			}]
		}
	})
}